class CreateCursos < ActiveRecord::Migration
  def self.up
    create_table :cursos do |t|

      t.string :nome, :limit => 100, :null => false
      t.integer :carga_horaria, :limit => 3, :null => false
      t.text :descricao, :null => false
      t.text :metodologia, :null => false
      t.text :avaliacao, :null => false
      t.string :instituicao, :limit => 60, :null => false
      t.integer :status, :null => false
      t.timestamps
    end
 
  end

  def self.down
    drop_table :cursos
  end
end
